package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbclass_info")
public class DevtZbclassInfoEntity {
    private String id;
    private String zbclassname;
    private String zbclasscode;
    private String parentid;
    
    @Id
    @Column(name = "ID", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "zbclassname", nullable = true, length = 256)
    public String getZbclassname() {
        return zbclassname;
    }
    
    public void setZbclassname(String zbclassname) {
        this.zbclassname = zbclassname;
    }
    
    @Basic
    @Column(name = "zbclasscode", nullable = true, length = 256)
    public String getZbclasscode() {
        return zbclasscode;
    }
    
    public void setZbclasscode(String zbclasscode) {
        this.zbclasscode = zbclasscode;
    }
    
    @Basic
    @Column(name = "parentid", nullable = true, length = 256)
    public String getParentid() {
        return parentid;
    }
    
    public void setParentid(String parentid) {
        this.parentid = parentid;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbclassInfoEntity that = (DevtZbclassInfoEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(zbclassname, that.zbclassname) && Objects.equals(zbclasscode, that.zbclasscode) && Objects.equals(parentid, that.parentid);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, zbclassname, zbclasscode, parentid);
    }
}
